from tkinter import *


class Screen:
    def __init__(self):
        # --------------- 主屏幕 --------------
        self.screen = Tk()
        self.screen.geometry("250x250")
        #     ---------------- 参数 -----------------
        self.v = StringVar()  # 结果

    def make(self):
        option1 = {
            'text': '开始运算',
        }
        startButton = Button(self.screen, command=self.doOperation, **option1)  # 按钮

        option2 = {
            'text': '停止运算',
        }
        stopButton = Button(self.screen, command=self.stopOperation, **option2)  # 按钮

        option3 = {
            'text': '显示结果',
        }
        showButton = Button(self.screen, command=self.showResult, **option3)  # 按钮
        label = Label(self.screen, textvariable=self.v)  # 显示
        startButton.pack()
        stopButton.pack()
        showButton.pack()
        label.pack()

    def doOperation(self):
        pass

    def stopOperation(self):
        pass

    def showResult(self):
        pass

    def run(self):
        self.make()
        self.screen.mainloop()
